//
//  CommonRouteCellNew.m
//  NtoccShipper
//
//  Created by mac on 2020/6/10.
//  Copyright © 2020 zhuchongjin. All rights reserved.
//

#import "CommonRouteCellNew.h"
@interface CommonRouteCellNew()
@property (nonatomic,strong) CJLabel *labConsigneeName; // 发货
@property (nonatomic,strong) CJLabel *labConsigneePhone;
@property (nonatomic,strong) CJLabel *labConsigneeAddress;

@property (nonatomic,strong) CJLabel *labConsignorName;
@property (nonatomic,strong) CJLabel *labConsignorPhone;
@property (nonatomic,strong) CJLabel *labConsignorAddress;

@end
@implementation CommonRouteCellNew

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (void)setCellInfoWithModel:(CommonRouteModel *)model{
    
    if (model) {
        self.labConsignorName.text = model.consigneeName;
        self.labConsignorPhone.text = model.consigneePhone;
        self.labConsignorAddress.text = CJStringWithFormat(@"%@%@",model.consigneeAddress,model.consigneeDetailAddress);
        
        self.labConsigneeName.text = model.consignorName;
        self.labConsigneePhone.text = model.consignorPhone;
        self.labConsigneeAddress.text = CJStringWithFormat(@"%@%@",model.consignorAddress,model.consignorDetailAddress);
        
    }
}

- (void)btnDelecteCommonRoueAction{
    
    if (self.blockDelecte) {
        self.blockDelecte(@"");
    }
}

- (void)btncHangeCommonRoueAction{
    
    if (self.blockChange) {
        self.blockChange(@"");
    }
    
}


@end
